Skip to content

ARROW-4281: [CI] Use Ubuntu Xenial VMs on Travis-CI - #3418

Closed
pitrou wants to merge 2 commits into
apache:masterfrom
pitrou:ARROW-4281-travis-ci-xenial
Closed

pitrou wants to merge 2 commits into
apache:masterfrom
pitrou:ARROW-4281-travis-ci-xenial

Conversation

@pitrou

@pitrou pitrou commented Jan 17, 2019

Copy link
Copy Markdown
Member

The R build job still uses Trusty, though, as the community-supported R images don't work with Xenial.

@pitrou
pitrou force-pushed the ARROW-4281-travis-ci-xenial branch 3 times, most recently from 598e497 to 87cafab Compare January 17, 2019 13:59
@pitrou

pitrou commented Jan 17, 2019

Copy link
Copy Markdown
Member Author

The Java Gandiva tests fail and I don't know how to go about solving that. @pravindra Would you like to help?
The errors look as follows:

[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.706 s <<< FAILURE! - in org.apache.arrow.gandiva.evaluator.ExpressionRegistryTest
[ERROR] testTypes(org.apache.arrow.gandiva.evaluator.ExpressionRegistryTest)  Time elapsed: 0.689 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: org.apache.arrow.gandiva.evaluator.ExpressionRegistryJniHelper.getGandivaSupportedDataTypes()[B
	at org.apache.arrow.gandiva.evaluator.ExpressionRegistryTest.testTypes(ExpressionRegistryTest.java:33)

See full log here:
https://travis-ci.org/apache/arrow/jobs/480883085#L2367

Not much should have changed here, we're just using the Xenial VMs (Ubuntu 16.04) rather than Trusty.
Information about the Java environment is here:

+which java
/usr/bin/java
+which mvn
/usr/bin/mvn
+java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.16.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
+mvn -v
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_191, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-1026-gcp", arch: "amd64", family: "unix"

https://travis-ci.org/apache/arrow/jobs/480883085#L622-L636

@pravindra

pravindra commented Jan 17, 2019 via email

Copy link
Copy Markdown
Contributor

@pravindra

pravindra commented Jan 18, 2019 •

Copy link
Copy Markdown
Contributor

@pitrou - i'm able to get the java tests to run with this fix.

diff --git a/cpp/src/gandiva/jni/symbols.map b/cpp/src/gandiva/jni/symbols.map
index a387ae1f..e0f5def4 100644
--- a/cpp/src/gandiva/jni/symbols.map
+++ b/cpp/src/gandiva/jni/symbols.map
@@ -15,6 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 {
-  global: extern "C++" { gandiva*; Java*; JNI*; };
+  global: extern "C++" { gandiva*; }; Java*; JNI*;
   local: *;
 };

@pitrou

pitrou commented Jan 18, 2019

Copy link
Copy Markdown
Member Author

Thanks @pravindra ! I'll apply the fix in the PR.

@pitrou
pitrou force-pushed the ARROW-4281-travis-ci-xenial branch from 87cafab to 9a6c1f3 Compare January 18, 2019 08:38
@pitrou pitrou changed the title [WIP] ARROW-4281: [CI] Use Ubuntu Xenial VMs on Travis-CI [skip appveyor] ARROW-4281: [CI] Use Ubuntu Xenial VMs on Travis-CI Jan 18, 2019
@pitrou
pitrou force-pushed the ARROW-4281-travis-ci-xenial branch from 9a6c1f3 to 2244229 Compare January 18, 2019 10:32
@wesm
wesm force-pushed the ARROW-4281-travis-ci-xenial branch from 2244229 to ea712ac Compare January 19, 2019 16:36
@wesm

wesm commented Jan 19, 2019

Copy link
Copy Markdown
Member

rebased

@wesm
wesm force-pushed the ARROW-4281-travis-ci-xenial branch 2 times, most recently from 42b99d4 to e1364a0 Compare January 20, 2019 16:50
@kszucs

kszucs commented Jan 22, 2019 •

Copy link
Copy Markdown
Member

We should be able to set conda-forge globally: conda config --add channels conda-forge.

It looks like conda-forge is already set as top-priority channel: https://github.com/apache/arrow/blob/master/ci/travis_install_conda.sh#L71
I think We can remove all occurrences of -c conda-forge

The R build job still uses Trusty, though, as the community-supported
R images don't work with Xenial.
@pitrou
pitrou force-pushed the ARROW-4281-travis-ci-xenial branch from e1364a0 to 7cdc813 Compare January 22, 2019 14:50
@pitrou

pitrou commented Jan 22, 2019

Copy link
Copy Markdown
Member Author

I think We can remove all occurrences of -c conda-forge

Ok, i'm trying this now.

@wesm

wesm commented Jan 23, 2019

Copy link
Copy Markdown
Member

@pitrou anything more you want to do here? Otherwise IMHO this should be merged (and we can deal with any further issues that arise)

@kszucs kszucs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kszucs

kszucs commented Jan 23, 2019

Copy link
Copy Markdown
Member

Created issue for the channel removal: https://issues.apache.org/jira/browse/ARROW-4334

@kszucs kszucs closed this in 1b8a7bc Jan 23, 2019
@pitrou
pitrou deleted the ARROW-4281-travis-ci-xenial branch January 23, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants